// pages/taxReceipt/taxReceipt.js
const app = getApp();
let handleNavigationBar = require("../../utils/formatCurrency").handleNavigationBar;
Page({
  data: {
    taxTYpe:'国税'
  },
  onLoad: function (options) {
    handleNavigationBar(app.globalData.company);
  },
  setTitle(e){
    if (e.detail.source === 'touch') {
      switch (e.detail.current) {
        case 0:
          this.data.taxTYpe = '国税'
          break;
        case 1:
          this.data.taxTYpe = '地税'
          break;
        default:
          this.data.taxTYpe = '个税'
      }
      this.setData({
        taxTYpe: this.data.taxTYpe,
      })
    }
  }
})